package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 *  逻辑删除：
 *  ①配置全局的逻辑删除规则(可省略)
 *  logic-delete-value: 1 (默认1为删除，0为不删除，也可以自己配置)
 *       logic-not-delete-value: 0
 *  ②配置逻辑删除的组件MyBatisPlus 3.1.1后可不配置可省略
 *  ③给实体类的属性加上逻辑删除注解@TableLogic(value = "1",delval = "0")
 */
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
